package cn.wolfcode.wolf2w.query;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * 游记条件
 */
@Getter
public class TravelCondition {

    //  旅游天数
    public static final Map<Integer, TravelCondition> TRAVEL_DAYS = new HashMap<>();
    //  人均消费
    public static final Map<Integer, TravelCondition> TRAVEL_PRE_EXPENDS = new HashMap<>();


    static {
        TRAVEL_DAYS.put(1, new TravelCondition(0, 3));
        TRAVEL_DAYS.put(2, new TravelCondition(4, 7));
        TRAVEL_DAYS.put(3, new TravelCondition(8, 14));
        TRAVEL_DAYS.put(4, new TravelCondition(15, Integer.MAX_VALUE));

        TRAVEL_PRE_EXPENDS.put(1, new TravelCondition(1, 999));
        TRAVEL_PRE_EXPENDS.put(2, new TravelCondition(1000, 6000));
        TRAVEL_PRE_EXPENDS.put(3, new TravelCondition(6001, 20000));
        TRAVEL_PRE_EXPENDS.put(4, new TravelCondition(20001, Integer.MAX_VALUE));
    }

    private int min;
    private int max;

    public TravelCondition (int min, int max) {
        this.min = min;
        this.max = max;
    }
}
